package com.daigou.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.daigou.dto.CustomerQuery;
import com.daigou.model.ShopCustomer;

public interface ShopCustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopCustomer record);

    int insertSelective(ShopCustomer record);

    ShopCustomer selectByPrimaryKey(Long id);
    
    ShopCustomer selectByShopIdAndCustomerId(@Param("shopId")Long shopId,@Param("customerId")Long customerId);
    
    ShopCustomer selectByShopIdAndMobile(@Param("shopId")Long shopId,@Param("mobile")Long mobile);

    int updateByPrimaryKeySelective(ShopCustomer record);

    int updateByPrimaryKey(ShopCustomer record);
    
    /**
	 * 按权限汇总数据
	 * @param paramMap
	 * @return
	 */
	public int selectCountByRole(CustomerQuery customerQuery);
	/**
	 * 按权限查询数据
	 * @param paramMap
	 * @return
	 */
	public List<ShopCustomer> selectShopCustomerByRole(CustomerQuery customerQuery);
}